import { request } from '@/service/request';
import type { Suggestion } from '@/interface';

/**
 * 列表
 */
export function saveSuggestion(data: Suggestion) {
  return request.post<void>('/admin/suggest/create', data, {
    useErrMsg: true
  });
}

/**
 * 删除
 */
export function delSuggestPicture(pictureId: string) {
  return request.delete<void>(`/admin/suggest/delPicture?pictureId=${pictureId}`, null, {
    useErrMsg: true
  });
}
